<?php
namespace app\home\controller;
class Notice extends Common{
	
    public function _initialize(){
        parent::_initialize();
    }
	
    public function index(){
	
            $list = db('notice') ->order('DateTime')->select();
            $this->assign('l1_list', $list);
       
        return $this->fetch();
    }
	
	
	//根据公告ID获取获取公告内容
	public function content()
	{
		$notice = db('notice')->where('id', input('param.id'))->find();
		$this->assign('notice', $notice);
		return $this->fetch();
		
	}
}